﻿using JetBrains.Annotations;
using Missbot.AIModule.Pet;
using Missbot.Core.Base;

namespace Missbot.AIModule.Vip.VipArmers
{
    [UsedImplicitly]
    public class 高级宠物粮 : IVipArmer
    {
        public string Name { get; set; } = "高级宠物粮";
        public string Description { get; set; } = "宠物立刻获得100经验值，每日限购一次。";
        public int DiamondsNeed { get; set; } = 110;
        public VipArmerLimitInterval LimitInterval { get; set; } = VipArmerLimitInterval.Daily;
        public int LimitCount { get; set; } = 1;

        public bool Purchase(InboxSession session)
        {
            var pet = PetRecordDA.Get(session.User.ID);
            var msg = pet.ExtGain(100);
            session.SendBack(msg);
            return true;
        }

        public int MaxContains { get; set; }
    }
}